package s06;

/**
 * @ClassName Husband
 * @Description TODO
 * @Author Li
 * @Date 2022/8/14 18:23
 * @ModifyDate 2022/8/14 18:23
 * @Version 1.0
 */
public class Husband {
    public void buyHouse(){
        System.out.println("买套房子！");
    }
    public void marry(Richer r){
        r.buy();
    }
    public void haveMoney(){
        marry(this::buyHouse);
    }
}
